<script setup lang="ts">
import useAuth from '@/hooks/useAuth'

defineProps<{
  perm?: string | string[]
}>()

const { hasPermission } = useAuth()
</script>

<template>
  <slot v-if="hasPermission(perm)" />
</template>
